using System;
using System.Collections.Generic;
using UnityEngine;

namespace Features
{
    [CreateAssetMenu(fileName = "GiveBuff", menuName = "Features/给予自身Buff")]
    public class GiveBuff : Feature
    {
        public Feature GivedFeature;
        public override void CancleEffect(FeatureEventArgs args)
        {

        }

        public override void ExecuteEffect(FeatureEventArgs args)
        {
            var feature = Instantiate(GivedFeature);
            args.pawn.Card.Features.Add(feature);
            //feature.Init(args.pawn);
        }

        public override string GetDescription()
        {
            Debug.Log("yes");
            return GetTriggerText() + "给予:" + GivedFeature.GetDescription();
        }
    }
}